'''
Created on Feb 20, 2013
@Author: Rossi Kamal(rossi@khu.ac.kr)under supervision of Professor Dr Choong Seon Hong(cshong@khu.ac.kr)
Description: Univariate Mean Generator

INPUT: X (Array)
OUTPUT: MU(Mean)

'''

import numpy as np
class UniVariateMeanGenerator:
    def __init__(self,uni_variate_x):
        self.uni_variate_x=uni_variate_x
    def voidCalculateMean(self):
        uni_variate_mean=0.0
        for i in np.nditer(self.uni_variate_x):
            uni_variate_mean=uni_variate_mean+i
        uni_variate_mean=uni_variate_mean/(self.uni_variate_x.size)      
        return uni_variate_mean